package cn.djun.news.util;

/**
 * @author djun
 * @classname ResponseMsg
 * @description msg
 * @date 2020/11/24 13:46
 * @email 3170495286@qq.com
 */
public interface Constant {
    /**
     * ---------------------------------code--------------------------------------
     */
    /**
     * 响应成功
     */
    public final static int SUCCES_CODE = 200;
    /**
     * 响应成功
     */
    public final static int ERROR_CODE = 401;
    /**
     * 用户不存在
     */
    public final static int USNO_CODE = 403;
    /**
     * 服务器内部错误
     */
    public final static int SERVE_ERROR = 500;
    /**
     * -------------------------------msg----------------------------------------
     */
    /**
     * 用户不存在
     */
    public final static String USRE_ERROR = "用户不存在！";
    /**
     * 密码输入错误
     */
    public final static String PWD_ERROR = "密码输入错误！";
    /**
     * 登录成功
     */
    public final static String LOGIN_SUCCES = "登录成功";
    /**
     * 服务器内部错误
     */
    public final static String SERVE_ERROR_MSG = "服务器内部错误";
    /**
     * 查询成功
     */
    public final static String SELECT_SUCCES = "查询成功";
    /**
     * 新闻新增成功
     */
    public final static String INSERT_SUCCES_NEWS = "新闻新增成功";
    /**
     * 用户新增成功
     */
    public final static String INSERT_SUCCES = "用户新增成功";
    /**
     * 用户新增失败"
     */
    public final static String INSERT_FAILD = "用户新增失败";
    /**
     * 新闻新增失败
     */
    public final static String INSERT_FAILD_NEWS = "新闻新增失败";
    /**
     * 用户名不能重复
     */
    public final static String USER_REPETITION = "用户名不能重复";
    /**
     * 新闻标题不能重复
     */
    public final static String USER_REPETITION_NEWS = "新闻标题不能重复";
    /**
     * 修改成功
     */
    public final static String UPADTA_SUCCES = "修改成功";
    /**
     * 修改失败
     */
    public final static String UPADTA_FAILD = "修改失败";
    /**
     * 收藏成功
     */
    public final static String COLLECT_SUCCES = "收藏成功";
    /**
     * 收藏失败
     */
    public final static String COLLECT_ERROR = "收藏失败";
    /**
     * 取消收藏成功
     */
    public final static String COLLECT_CANCEL_SUCCES = "取消收藏成功";
    /**
     * 取消收藏失败
     */
    public final static String COLLECT_CANCEL_FAILD = "取消收藏失败";
    /**
     * 删除新闻成功
     */
    public final static String DELETE_NEWS_SUCCESS = "删除新闻成功";
    /**
     * admin用户不能删除
     */
    public final static String ADMIN_NODELETE = "admin用户不能删除";
    /**
     * 用户删除成功
     */
    public final static String USER_DELETE_SUCCESS = "用户删除成功";
    /**
     * 用户删除失败
     */
    public final static String USER_DELETE_FAILD = "用户删除失败";
    /**
     * 删除新闻失败
     */
    public final static String DELETE_NEWS_FAILD = "删除新闻失败";
    /**
     * 该新闻还没有评论
     */
    public final static String NEWS_NO_COMMENT = "该新闻还没有评论";
    /**
     * 评论删除成功
     */
    public final static String COMMENT_DELETE_SUCCESS = "评论删除成功";
    /**
     * 评论删除失败
     */
    public final static String COMMENT_DELETE_FAILD = "评论删除失败";
    /**
     * 评论成功
     */
    public final static String ADD_NEWS_SUCCESS = "评论成功";
    /**
     * 评论失败
     */
    public final static String ADD_NEWS_FAILD = "评论失败";
}
